package com.haixiaoke.saas.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.saas.user.domain.UserConsumer;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author panda
 * @Date 2024/4/11
 **/
@Data
public class OrderDTO {
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull
    private Date endTime;
    /**
     * 房屋id
     */
    @NotBlank(message = "房屋id不能为空")
    private String houseId;
    /**
     * 订单id
     */
    private String orderId;
    /**
     * 承租人id
     */
    private Long lesseeId;
    /**
     * 同住人id集合
     */
    private List<Long> memberIdList;
    /**
     *  用户小程序openid
     */
    private String openId;
    /**
     * c端用户信息
     */
    private UserConsumer userConsumer;
}
